$OpenBSD: patch-krfb_libvncserver_main_c,v 1.1 2004/02/01 23:51:53 espie Exp $
--- krfb/libvncserver/main.c.orig	2004-01-26 15:20:47.000000000 +0100
+++ krfb/libvncserver/main.c	2004-01-26 15:23:15.000000000 +0100
@@ -35,6 +35,10 @@ typedef int socklen_t;
 #include "rfb.h"
 #include "sraRegion.h"
 
+#if !defined(_BYTE_ORDER) && defined(BYTE_ORDER)
+# define BYTE_ORDER _BYTE_ORDER
+#endif
+
 /* minimum interval between attempts to send something */
 #define PING_MS 10000
 
